#ifndef __CONCLUDE_H__
#define __CONCLUDE_H__
#include "main.h"
#include "mc_math.h"

typedef struct PWM_TIM
{
	uint16_t PWMCTA,PWMCTB,PWMCTC;
}PWM_TIM;
uint16_t PWMC_SetPhaseVoltage(PWM_TIM *pHandle, alphabeta_t Valfa_beta);
void pwm_conclude(void);
void set_dq(int16_t q,int16_t d);
qd_t *get_dq(void);
PWM_TIM *get_con_handle(void);
uint16_t get_angel(void);
void set_angle(uint16_t angle);
uint16_t find_hal_angle(uint8_t,int16_t dir);
void get_motor_angle(void);
void change_hex_dex(uint8_t *sr,uint16_t hex);
void change_hal_angle(uint8_t status,uint16_t ag,int16_t dir);
int16_t get_hall_dir(uint16_t old_s,uint16_t new_s);
//void set_angle_shift(uint16_t ag);
alphabeta_t *get_i_alpha(void);
int16_t* get_modulus(void);
qd_t *get_I_qd(void);
void add_dq(int16_t qq);
void set_modulus(int16_t mm);
int16_t get_modulus_set(void);
int16_t get_dq_q(void);
void set_dir(int16_t);
int16_t get_dir(void);
#endif
